using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;

namespace TimeWar
{

    public abstract class CRenderedObjectFactory
    {
        protected Game m_game = null;
        protected GameScreen m_screen = null;
        protected static Int32 objCounter = 0;

        public CRenderedObjectFactory(Game game, GameScreen screen)
        {
            m_game = game;
            m_screen = screen;
        }

        protected abstract CRenderedObject constructObject(ObjectTypes p_type);

        protected void manageObjects(CRenderedObject obj)
        {
            //m_screen.addScreenObject(obj);
        }

        protected static Int32 generateObjectId()
        {
            Int32 currId = objCounter;
            objCounter++;
            return currId;
        }


    }
}